<script setup lang="ts">
defineOptions({
  name: "LineChart"
});
import { lineChartData } from "@/components/ReChart/samples";
</script>

<template>
  <div class="line-chart">
    <div class="title">
      <span>曝光量</span>
    </div>
    <ReChart :data="lineChartData" type="line" height="100%" width="100%" />
  </div>
</template>

<style lang="scss" scoped>
.line-chart {
  box-sizing: border-box;
  width: 100%;
  height: 100%;

  .title {
    position: absolute;
    top: -15px;
    left: 20%;
    width: 60%;
    height: 35px;
    font-size: 16px;
    font-weight: bold;
    line-height: 35px;
    color: #fff;
    text-align: center;
    background-color: #2e6099;
    border-radius: 18px;
  }
}
</style>
